//
//  XLPlayerError.h
//  FFMpegKitDemo
//
//  Created by ilongge on 2023/8/2.
//

#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, XLPlayerErrorCode) {
    XLPlayerErrorCodeUrlNil                      = 100001,
    XLPlayerErrorCodeItemNil                     = 100002,
    XLPlayerErrorCodeAssetNil                    = 100003,
    XLPlayerErrorCodeUrlInvalid                  = 100004,
    XLPlayerErrorCodeCreateFormatContextFailed   = 100005,
    XLPlayerErrorCodeFormatContextNull           = 100006,
    XLPlayerErrorCodeCreateVideoCodecFailed      = 100007,
    XLPlayerErrorCodeCreateAudioCodecFailed      = 100008,
    XLPlayerErrorCodeFileInvalid                 = 100009
};
@interface XLPlayerError : NSError
+ (NSError *)errorWithCode:(XLPlayerErrorCode)errorCode;
@end


